extends layout

block content
    h1= title
        ul
        each val in list
            li
                a(href=val.url) #{val.book.title} : #{val.imprint} -
                if val.status==='可供借阅'
                    span.text-success #{val.status}
                else if val.status==='馆藏维护'
                    span.text-danger #{val.status}
                else
                    span.text-warning #{val.status}

                if val.status!=='可供借阅'
                    span  (Due: #{val.due_back_formatted})
        else
            li 书籍数量为0